-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable ending animation in RequireTwoFactorAuthenticationModal
#50790
Enable ending animation in RequireTwoFactorAuthenticationModal
#50790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Maybe tag design team to confirm it with them?
Sure! |
Why does it do this behavior in the first place though? It seems like it just goes away automatically? cc @Expensify/design as well |
Because of the implementation |
Hmm I am not following. Why would we show this modal and then immediately close it? |
I think the fact that it is closing immediately instead of sliding down, is a bug |
Regardless if it closes immediately or slides down, why do we show the modal quickly and then unshow it right away? The user doesn't even get a chance to read it or interact with it. That feels like the real bug to me. |
Ah, sorry for the confusion, the modal is shown for as long ad the user doesn't close it, I just clicked fast to show how inconsistent the in and out animations are 😊 |
Ahhhh okay, that makes more sense. Then yeah, the slide down animation feels nicer. |
And which option is better the default one ( |
Yeah I like the second video you have that adds a little bit of timing. |
@shawnborton @situchan One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Same! |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.mp4Android: mWeb Chromemchrome.mp4iOS: Nativeios.moviOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktop |
@@ -47,6 +47,7 @@ function RequireTwoFactorAuthenticationModal({onCancel = () => {}, description, | |||
type={shouldUseNarrowLayout ? CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED : CONST.MODAL.MODAL_TYPE.CONFIRM} | |||
innerContainerStyle={{...styles.pb5, ...styles.pt3, ...styles.boxShadowNone}} | |||
shouldEnableNewFocusManagement={shouldEnableNewFocusManagement} | |||
animationOutTiming={500} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
500 is new value, specific to this modal. If this looks much smoother than before, should this be applied to all modals for consistency?
I think we can leave as is for now so suggest to remove this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, we're now improving user experience related to modal in this issue. This is just a part of bigger change 😊
Here in this PR I was just fixing a small bug that I spotted, while analysing all modals in the app. But I thought it would better look with the longer slide out animation, that's why I asked the design team 📞
Soon all modals will be more consistent in case of animations.
Agree that the second video is better 👍 |
@situchan could you take a look again? 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it, thanks @zfurtak! Keep it up with the great animation improvements
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
This is not Emergency the checks were passing, there seems to be some bug with the emergency logic now |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.52-0 🚀
|
This PR is failing for mWeb/Safari and mWeb/Chrome because of issue #51254 |
I'm looking into it 🫡 |
After some analysis and testing, I believe that the issue is not caused by this PR. The bug was there before and may be more visible now. |
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.52-5 🚀
|
Details
As a part of improving UX reliability I fixed animation of
RequireTwoFactorAuthenticationModal
on native app, as before it was sliding up and later just disappearing.This is how it acted before
before.mov
This is after the change, but here I had the impression that it's sliding down much faster than sliding up
after.mov
So here is a version with
animationOutTiming={500}
after_500.mov
Fixed Issues
$ #49354
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
after.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop